{include file=$header_start}
{strip}
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/dashboard.css">
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/find_job_list.css">
{/strip}

{include file=$header_end}


<section class="middle_portion">
	<section class="inner_head">Dashboard</section>
    <section class="inner_containstart">
    	<!-- dashboard Left Content Start -->
        	{include file=$cms_left_content}
        <!-- dashboard Left Content End -->
        <!-- dashboard Right Content Start -->
        	<section class="dash_right">
            <section class="title_box">
            	<h4>Available Leads</h4>
            	 <section class="clear"></section>
                 
                </section>                             
				{if $msg}<span style="padding:10px;"> {$msg} </span>{/if}
                <section class="mainbox_findjobs">
                
				<section class="leads_manag_box">
                <form name="searchfrm" id="searchfrm" action="{$siteroot}/leads/leads/" method="POST" >
                 <section class="group_search_box">
                  <span class="lF">
					<select class="select" id="jobtypeid" name="jobtypeid" >
                        <option value="">Select Job Type</option>
                        {section name=j loop=$jobtypeArray}
                            <option value="{$jobtypeArray[j].id}" {if $jobtypeid eq $jobtypeArray[j].id} selected="selected" {/if}>{$jobtypeArray[j].trade_category}</option>
                        {/section}
                        
                    </select>                  
                    <input type="submit" class="btn" value="Go">
                    &nbsp;&nbsp;
                    <input type="button" class="btn" value="Clear" onclick="javascript:window.location='{$siteroot}/leads/leads/';">
                    <section class="clear"></section>
                       </span>   
                    <span class="rF" style="padding-top:10px;" >"Want to see more leads? Update your Skills and work area – <a href="{$siteroot}/myaccount/myservicelocation/">click here</a>" </span>
         <section class="clear"></section>
                  </section>
                  </form>
                	<dl>
	                  	<dt class="col1">Job ID</dt>
                        <dt class="col2">Trade Category</dt>
                        <dt class="col3">Job type</dt>
                        <dt class="col4">Job Description</dt>
                        <dt class="col5">Budget</dt>
                        <dt class="col6">Postal Code</dt>
                        <dt class="col7 textcenter">Action</dt>
                        <section class="clear"></section>
                    </dl>
                    {section name=i loop=$alljobsArray}           
                       <dl class="padcol">           
                        <dd class="col1">#PR{$alljobsArray[i].postjob_id}</dd>
                        <dd class="col2">{$alljobsArray[i].tradename}</dd>
                        <dd class="col3">{$alljobsArray[i].jobtypename}</dd>
                        <dd class="col4">{$alljobsArray[i].job_desc|truncate:50:""}</dd>
                        <dd class="col5">Under ${$alljobsArray[i].budgetname}</dd>
                        <dd class="col6"><span style="padding-left:20px;"> {$alljobsArray[i].area} </span></dd>
                        <dd class="col7 textcenter">             
                            <input type="button" onclick="window.location.href='{$siteroot}/leads/{$alljobsArray[i].postjob_id|base64_encode}/buylead/'" value="Detail" class="btn" />
                            <!-- {if $alljobsArray[i].jobdetail neq 'Interested'}View Detail{else}Interested{/if} -->
                         </dd>
            
                        <section class="clear"></section>
                       </dl>
                       {sectionelse}
                       <dl class="padcol">
                         <div class="error" style="padding:10px;text-align:center">Oops, Sorry there are no available leads.</div>
                     </dl>
                       {/section}
                  		{if $pagenation}
                            <section class="pagna">
                            {$pagenation}
                            </section>
                        {/if}
                             

                        
                        <section class="clear"></section>
                </section> 
                
                 <section class="clear"></section>
                 	 <section class="bgimg_shadow"></section>
                 	<section class="clear"></section>
                </section>  
            </section>
        <!-- dashboard Right Content End -->
        	<section class="clear"></section>
    </section>
</section>
{include file=$footer}
